Class HttpRequestEncoder

java.lang.Object
com.netscape.cmscore.connector.HttpRequestEncoder

public class HttpRequestEncoder extends Object
This represents a rquest encoder that serializes and deserializes a request to a Remote Authority so that it can be sent through the connector.
  • Field Details

    • logger

      public static org.slf4j.Logger logger
  • Constructor Details

    • HttpRequestEncoder

      public HttpRequestEncoder()
  • Method Details

    • encode

      public String encode(Object r) throws IOException
      Encodes a request object.
      Parameters:
      r - Object to serve as the source of the message.
      Returns:
      String containing encoded message.
      Throws:
      IOException - Failure of the encoding operation due to IO error.
    • decode

      public Object decode(String s) throws IOException
      Decodes a String into an object.
      Returns:
      Object which is the result of the decoded message.
      Throws:
      IOException - Failure of the decoding operation due to IO error.